package com.school.information.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.school.information.entity.SysRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {

    /**
     * 根据用户id，查询该用户下所有的角色信息
     *
     * @param userId
     * @return
     */
    List<SysRoleEntity> findByUserId(@Param("userId") Long userId);
}
